package com.woniuxy.dao;

import com.woniuxy.entity.Course;
import com.woniuxy.entity.ResponseEntity;

import java.util.List;
import java.util.Map;

/**
 * <p>TODO<p>
 *
 * @author LSL
 * @date 2022/5/31 12:42
 */
public interface CourseDao {
    List<Course> findAllCourse();

//    ����idɾ��һ�����
    int deleteOneById(int id);

    /**
     * �������֡��㼶�������
     *
     * @param course �γ�
     * @return {@link List}<{@link ResponseEntity}>
     */
    ResponseEntity findCourseByName(Map<String, String> course);
    ResponseEntity findCourseByTopicId(int id);
}
